<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jsp:include page="/common/easyui.jsp"></jsp:include>
<script type="text/javascript" src='${base}/common/js/mxgraph/mxClient.js'></script>
<script type="text/javascript">
	function initReport(container){
		var graph = new mxGraph(container);
		var parent = graph.getDefaultParent();
		graph.getModel().beginUpdate();
        try
        {
           var v1 = graph.insertVertex(parent, null,
                    'Hello,', 20, 20, 80, 30);
           var v2 = graph.insertVertex(parent, null,
                    'World!', 200, 150, 80, 30);
           var e1 = graph.insertEdge(parent, null, '', v1, v2);
        }
        finally
        {
           graph.getModel().endUpdate();
        }
	}
	$(document).ready(function(){
		initReport($("#reportContainer").get(0)) ;
	});
	
</script>
</head>
<body>
	<div id='reportContainer' style='margin: 100px;border:1px solid #ff0000;width:800px;height:600px'>
	</div>
</body>
</html>